package com.example.su_shi_tan_core.constant

import com.example.su_shi_tan_core.bean.SignUserBean
import com.example.su_shi_tan_core.db.UserInfoBeanHolder

object SignUserBeanHolder {

    private var obj: SignUserBean? = null

    fun onSave(obj: SignUserBean?) {
        this.obj = obj
        UserInfoBeanHolder.onSave(obj)
    }

    fun getSignUser(): SignUserBean? {
        if (obj == null) {
            obj = UserInfoBeanHolder.getUserInfoBean()?.mSignUserBean
        }
        return obj
    }

}